-
Notifications
You must be signed in to change notification settings - Fork 435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tooltips to FlxG.debugger #2006
Conversation
*/ | ||
public function destroy():Void | ||
{ | ||
if (_shadow != null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you could use _shadow = FlxDestroyUtil.removeChild(this, _shadow);
and for _background
and _text
also
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the tip! It looks like @Gama11 was faster than me to fix it :)
This PR allows the use of tooltips in the debugger. Any
Sprite
element child ofFlxG.debugger
can receive a tooltip using the callTooltip.add(element, text)
. I decided for a static method in theTooltip
class instead of something likeFlxG.debugger.tooltip.add()
to keep the API internal and hidden from HaxeFlixel users.I also added tooltips to the tools in
FlxG.debugger.interaction
.